<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button onclick="openWindow()">查看浏览器信息</button>
</body>
<script>
    function openWindow() {
        setTimeout(() => {
            newW = window.open('./浏览器信息.html', '_blank', 'width=450px,height=450px', true);
            // console.log(newW);
        }, 3000);

        setTimeout(() => {

            if (!newW.closed) {
                newW.close();
                location.href = './浏览器信息.html'
            }
        }, 8000);
    }
</script>

</html>